home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: in2.uu.net!world!dougb
- From: dougb@world.std.com (doug a blaisdell)
- Subject: Help: RCS and make.
- Message-ID: <DnIDn2.8rK@world.std.com>
- Organization: The World Public Access UNIX, Brookline, MA
- X-Newsreader: TIN [version 1.2 PL2]
- Date: Wed, 28 Feb 1996 23:09:02 GMT
-
- hi y'all--
-
- Anyone know how to get around the problem where the makefile
- has some files that are dependent on RCS: eg:
-
- foo.c: RCS/foo.c,v
- co foo.c
-
- And you do something like:
-
- co -l foo.c
-
- and then a:
-
- make foo
-
- Make will call RCS to checkout foo.c again. In fact,
- every time you run make thereafter, because "co -l"
- alters the mod time for foo.c,v, making it newer than
- what it checked out, and make detects this. The work
- around is to touch foo.c, after "co -l", so foo.c
- will appear newer than foo.c,v, and make won't call
- "co" again. But, still, unnecessary checkouts are
- caused when others do makes on the same sources, if
- the ./RCS directory is really a link to a common
- source control area.
-
- -------------------
-
- The reason this happens (it doesn't happen using "co"
- without "-l") is that:
-
- The RCS file mod time gets changed, because -l forces
- lock info to be added to foo.c,v. These files are
- shared by several people, so rcs locking is set to
- "strict", which I guess causes the RCS file to be
- updated with locking info. )
-
- Anybody know a way around this incompatibility between
- RCS and make??
-
- Any help appreciated!!
- doug blaisdell
-
- ------------------------------------------------------------
-
- When marriage is outlawed, only outlaws will have inlaws.
- (might be a crime stopper.)
-
- ------------------------------------------------------------
-